Formation Of Rocky Planets And Super-Earths In Systems With Migrating Giant Planets